MODSIGN: Make shash allocation failure fatal
authorBen Hutchings <ben@decadent.org.uk>
Sun, 5 May 2019 12:45:06 +0000 (13:45 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Tue, 3 Aug 2021 05:50:50 +0000 (06:50 +0100)
commit83d8f39297956bf54aea0da6f99bf9cfcb3b8240
tree21dad02f49216c23e1f79adacd3bc8f29f9094d8
parent7527ffe6c828c18ef337a3b53972043226ca27e7
MODSIGN: Make shash allocation failure fatal

mod_is_hash_blacklisted() currently returns 0 (suceess) if
crypto_alloc_shash() fails.  This should instead be a fatal error,
so unwrap and pass up the error code.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic features/all/db-mok-keyring
Gbp-Pq: Name modsign-make-shash-allocation-failure-fatal.patch
kernel/module_signing.c